package com.newegg.nlp.arangodb.model;

import com.arangodb.springframework.annotation.Edge;
import com.arangodb.springframework.annotation.From;
import com.arangodb.springframework.annotation.To;
import com.newegg.nlp.arangodb.BaseModel;

@Edge
public class KeywordNoun extends BaseModel{
	
	@From
	Noun noun;
	
	@To
	Keyword keyword;
	
	public KeywordNoun(Noun noun, Keyword keyword) {
		super();
		this.setId(noun.getId() + "_" + keyword.getId());
		this.noun = noun;
		this.keyword = keyword;
	}

	public Keyword getKeyword() {
		return keyword;
	}

	public void setKeyword(Keyword keyword) {
		this.keyword = keyword;
	}

	public Noun getNoun() {
		return noun;
	}

	public void setNoun(Noun noun) {
		this.noun = noun;
	}
}
